package com.big.sms;

import com.big.model.vo.sms.PaySmsVo;
import com.big.model.vo.sms.SendSmsDto;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "service-sms")
@Repository
public interface SmsFeignClient {



    //发送短信
    @PostMapping("/api/sms/tx/PaySend")
    public void  PaySend(@RequestBody PaySmsVo paySmsVo);

    /**
     * 秒杀提醒我
     */
    @GetMapping("/api/sms/tx/remind/{iphone}")
    @ApiOperation(value = "秒杀提醒我")
    public int remindMe(@PathVariable String iphone);


    //发货提醒
    @GetMapping("/api/sms/tx/shipments/{phone}/{oId}")
    public Integer shipments(@PathVariable String phone,@PathVariable String oId);
}
